package cn.istartfinancial.mapper;


import cn.istartfinancial.config.datasource.MyMapper;
import cn.istartfinancial.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * @author: Nzp
 * @date: 2018/8/22
 * @description: 用户相关数据访问接口
 */
public interface SysUserMapper extends MyMapper<SysUser>
{

    SysUser login(@Param("username") String username);

    int count();

    int add(SysUser user);

    int delById(String id);

    int checkUser(String username);

    /**
     * 更新密码
     * @param user
     */
    int rePass(SysUser user);

    List<SysUser> getUserByRoleId(Map map);

    int countUserByRoleId(Map map);
}